class Employee:
    def __init__(self, name, id):
        self.name = name
        self.id = id

    def print_info(self):
        print(f"{self.name}的编号是{self.id}")


class FullEmployee(Employee):
    def __init__(self, name, id, monthly_salary):
        super().__init__(name, id)
        self.monthly_salary = monthly_salary

    def calculate(self):
        print(f"{self.name}的薪资是{self.monthly_salary}")


class PartTimeEmployee(Employee):
    def __init__(self, name, id, daily_salary, work_days):
        super().__init__(name, id)
        self.daily_salary = daily_salary
        self.work_days = work_days

    def calculate(self):
        self.daily_salary = self.daily_salary * self.work_days

        print(f"{self.name}的薪资是{self.daily_salary}")


fullEmployee1 = FullEmployee("小花", "01", 3000)
fullEmployee1.print_info()
fullEmployee1.calculate()

partTimeEmployee1 = PartTimeEmployee("小往", "02", 200, 20)
partTimeEmployee1.print_info()
partTimeEmployee1.calculate()
